package com.geeaks.learn.rename;

import java.util.Map;
import org.jsoup.Connection.Method;
import org.jsoup.Connection.Response;
import org.jsoup.Jsoup;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.Maps;

public class PaChong {
	//gaoxiang@qudian.com uWQJBkRp3LKy
	public static void main(String[] args) throws Exception {
		Map<String,String> data = Maps.newHashMap();
		data.put("email", "gaoxiang@qudian.com");
		data.put("password", "uWQJBkRp3LKy");
		Response result = Jsoup.connect("https://ops.qudian.com/api/v2/token/obtain/")
				.data(data)
				.method(Method.GET).execute();
		System.out.println(JSON.toJSONString(result));
		//{"code":0,"data":{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo3NzQsInVzZXJuYW1lIjoiZ2FveGlhbmdAcXVkaWFuLmNvbSIsImV4cCI6MTU1MzExNjc3NiwiZW1haWwiOiJnYW94aWFuZ0BxdWRpYW4uY29tIiwib3JpZ19pYXQiOjE1NTMwNzM1NzZ9.LDuSU85xxi6I48Y0nOne87wFbGqT6FjXOX4XU-nJzXo"},"msg":"success"}
		
	}
}
